package top.tangyh.lamp.care.common;

public enum ExeYaoEventTypeEnum {
    /**
     * 1.开始
     * 2.快推
     * 3.暂停
     * 4.加速
     * 5.减速
     * 6.已结束
     * 7.已完成
     * 8.已确认
     * 9.未开始
     */
    START("start", "开始执行", ExeYaoStatusEnum.RUNNING.getStatusCode()),
    FAST_PUSH("fastPush", "快推", ExeYaoStatusEnum.RUNNING.getStatusCode()),
    PAUSE("pause", "暂停", ExeYaoStatusEnum.RUNNING.getStatusCode()),
    SPEED_UP("speedUp", "加速", ExeYaoStatusEnum.RUNNING.getStatusCode()),
    SPEED_DOWN("speedDown", "减速", ExeYaoStatusEnum.RUNNING.getStatusCode()),
    END("end", "已结束", ExeYaoStatusEnum.END.getStatusCode()),
    COMPLETE("complete", "已完成", ExeYaoStatusEnum.COMPLETED.getStatusCode()),
    UNKNOWN("unknown", "未知", "unknown");

    private String eventType;

    private String eventName;

    private String exeStatus;

    public String getExeStatus() {
        return exeStatus;
    }

    public void setExeStatus(String exeStatus) {
        this.exeStatus = exeStatus;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    ExeYaoEventTypeEnum(String eventType, String eventName, String exeStatus) {
        this.eventType = eventType;
        this.eventName = eventName;
        this.exeStatus = exeStatus;
    }

    public static ExeYaoEventTypeEnum forValue(String eventType) {
        for (ExeYaoEventTypeEnum value : values()) {
            if (value.getEventType().equals(eventType)) {
                return value;
            }
        }
        return UNKNOWN;
    }

}
